package com.shark.uh.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName application
 */
@TableName(value ="application")
@Data
public class Application implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer id;

    /**
     * 应用名称
     */
    private String applicationName;

    /**
     * 应用创建时间
     */
    private String applicationCreateTime;

    /**
     * 应用描述
     */
    private String applicationDescription;

    /**
     * 应用类型
     */
    private String applicationType;

    /**
     * 部门ID
     */
    private String departmentId;

    /**
     * 产品id
     */
    private String productId;

    /**
     * 应用id
     */
    private String applicationId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Application other = (Application) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getApplicationName() == null ? other.getApplicationName() == null : this.getApplicationName().equals(other.getApplicationName()))
            && (this.getApplicationCreateTime() == null ? other.getApplicationCreateTime() == null : this.getApplicationCreateTime().equals(other.getApplicationCreateTime()))
            && (this.getApplicationDescription() == null ? other.getApplicationDescription() == null : this.getApplicationDescription().equals(other.getApplicationDescription()))
            && (this.getApplicationType() == null ? other.getApplicationType() == null : this.getApplicationType().equals(other.getApplicationType()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
            && (this.getApplicationId() == null ? other.getApplicationId() == null : this.getApplicationId().equals(other.getApplicationId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode());
        result = prime * result + ((getApplicationCreateTime() == null) ? 0 : getApplicationCreateTime().hashCode());
        result = prime * result + ((getApplicationDescription() == null) ? 0 : getApplicationDescription().hashCode());
        result = prime * result + ((getApplicationType() == null) ? 0 : getApplicationType().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
        result = prime * result + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", applicationName=").append(applicationName);
        sb.append(", applicationCreateTime=").append(applicationCreateTime);
        sb.append(", applicationDescription=").append(applicationDescription);
        sb.append(", applicationType=").append(applicationType);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", productId=").append(productId);
        sb.append(", applicationId=").append(applicationId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}